package dwl.graduation.design.service;

import dwl.graduation.design.domain.InsertPermissionForRoleRequest;
import dwl.graduation.design.domain.Role;
import dwl.graduation.design.domain.RoleInsertRequest;
import dwl.graduation.design.domain.RoleUpdateRequest;
import dwl.graduation.design.utils.PageResult;
import dwl.graduation.design.utils.QueryPageBean;

import java.util.Set;

public interface RoleService {
    boolean insertRoleInfo(RoleInsertRequest request);

    PageResult findRoleList(QueryPageBean queryPageBean);

    void deleteRole(Integer id);

    boolean updateRole(RoleUpdateRequest roleUpdateRequest);

    Set<Role> getUserRole(Integer userId);

    boolean insertPermissionForRole(InsertPermissionForRoleRequest insertRoleForUserRequest);

    Role findRoleById(Integer id);
}
